﻿#pragma once

#include <WinSock2.h>
#include <windows.h>

#include <functional>

#define DATA_BUFFERSIZE	1024*8
#define PORT 9990
#define CPU_VOLUME 6
#define BUFFER_MAX 1024

//IO操作的结构体
struct PER_IO_DATA
{
	//重叠结构
	OVERLAPPED Overlapped;
	//缓冲区对象
	WSABUF DataBuf;
	//缓冲区数组
	char Buffer[DATA_BUFFERSIZE];
	//发送字节数
	DWORD BytesSend;
	//接收的字节数
	DWORD BytesRecv;
};

struct PER_HANDLE_DATA
{
	SOCKET Socket;
};


